makeCustomAnimation
open fun makeCustomAnimation(@NonNull context: Context, enterResId: Int, exitResId: Int): ActivityOptionsCompat(source)
Create an ActivityOptions specifying a custom animation to run when the activity is displayed.
Return
Returns a new ActivityOptions object that you can use to supply these options as the options Bundle when starting an activity.
Parameters
context
Who is defining this. This is the application that the animation resources will be loaded from.
enterResId
A resource ID of the animation resource to use for the incoming activity. Use 0 for no animation.
exitResId
A resource ID of the animation resource to use for the outgoing activity. Use 0 for no animation.